let htmlDom = document.getElementsByTagName('html')[0];
window.addEventListener('resize', (e)=>{
    //获取视窗宽度
    let htmlWidth = document.documentElement.clientWidth || document.body.clientWidth;
    htmlDom.style.fontSize = htmlWidth/10 + 12.5 + 'px';
})